import * as CANNON from "cannon-es";
import world from "../CANNON";
class WorldPlane {
  constructor() {
    const planeShape = new CANNON.Plane()
    this.worldmesh = new CANNON.Body({ mass: 0, shape: planeShape })
    this.worldmesh.quaternion.setFromEuler(-Math.PI / 2, 0, 0) // make it face up
    world.addBody(this.worldmesh)
  }

}

export default new WorldPlane()